﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AirLinq.Providers.Sql {
	public class SqlColumn : SqlSourceReference {
		private readonly string _columnName;
		public SqlColumn(string columnName, SelectRef sourceRef): base(sourceRef) {
			if (string.IsNullOrEmpty(columnName)) {
				throw new ArgumentException("'columnName' is empty or null");
			}
			_columnName = columnName;
		}
		public string ColumnName {
			get {
				return _columnName;
			}
		}
		public override SqlNodeType NodeType {
			get {
				return SqlNodeType.Column;
			}
		}
	}
}
